package com.xiaochong.tir.apiservice.service;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
import java.util.List;
import com.xiaochong.tir.common.data.po.CurrencyConceptCategory;
import com.xiaochong.tir.common.data.mapper.CurrencyConceptCategoryMapper;

/**
 * 此类为[基础代码]自动生成,已经拥有基本的增删改成操作 
 * <其他请自行扩展>
 * @author cx
 * @time 2018-04-26 20:59
 * 
 */
@Service
public class CurrencyConceptCategoryService{
 
      
    @Autowired
	private CurrencyConceptCategoryMapper currencyConceptCategoryDao;
	
	
	/**
     * 新增
     * @param entity 
     * @param session
     */
    public int insertSelective (CurrencyConceptCategory entity) { 
     return this.currencyConceptCategoryDao.insertSelective(entity);
    }	
    
    /**
     * 批量新增
     * @param list 
     * @param session
     */
    public void insertBatch(List<CurrencyConceptCategory> list) {
           
          this.currencyConceptCategoryDao.insertBatch(list);
         
         
    }
    
    /**
     * 根据主键修改单条数据
     * @param entity 
     * @param session
     */
    public int updateByPrimaryKey(CurrencyConceptCategory entity) {
           return this.currencyConceptCategoryDao.updateByPrimaryKey(entity);
    }
    
    /**
     * 根据主键批量修改数据
     * @param list 
     * @param session
     */
    public void updateBatch(List<CurrencyConceptCategory> list) {
           
          this.currencyConceptCategoryDao.updateBatch(list);
          
        
    }
    
    /**
     * 根据主键查询单条数据
     * @param id
     */
    public CurrencyConceptCategory selectByPrimaryKey(Integer id) {
            return this.currencyConceptCategoryDao.selectByPrimaryKey(id);
    }
    
    /**
     * 根据条件查询单条记录
     * @param entity 
     */
    public CurrencyConceptCategory selectByEntity(CurrencyConceptCategory entity) {
           return this.currencyConceptCategoryDao.selectByEntity(entity);
    }
    
    
    /**
     * 根据条件查询多条记录
     * @param entity 
     */
    public List<CurrencyConceptCategory> selectByEntityList(CurrencyConceptCategory entity) {
           return  this.currencyConceptCategoryDao.selectByEntityList(entity);
    }
    
    /**
     * 根据条件查询Id
     * @param entity 
     */
    public Integer selectById(CurrencyConceptCategory entity) {
           return  this.currencyConceptCategoryDao.selectById(entity);
    }
    
     /**
     * 根据条件查询Ids
     * @param entity 
     */
    public List<Integer> selectByIds(CurrencyConceptCategory entity) {
        return  this.currencyConceptCategoryDao.selectByIds(entity);
    }
    
     /**
     * 根据主键删除单条记录
     * @param id
     */
    public void deleteByPrimaryKey(Integer id) {
           this.currencyConceptCategoryDao.deleteByPrimaryKey(id);
    }
    
    /**
     * 根据主键删除多条记录
     * @param list
     */
    public void deleteBatch(List<Integer> list) {
           this.currencyConceptCategoryDao.deleteBatch(list);
    }
    
     /**
     * 根据某些条件删除
     * @param entity
     */
    public void deleteBatch(CurrencyConceptCategory entity) {
           this.currencyConceptCategoryDao.deleteByEntity(entity);
    }
    
   
}